using System.Collections.Generic; 
using System.Text; 
using System;
using NHibernate;
using CNRegex.Entity;
using NHibernate.Linq;
using Project.Common;
namespace CNRegex.Dal.SPDal
{
	public class  DalSPListBlogs : BaseSPDal
	{	
		private  DalSPListBlogs()
		{
			
		}
		public IList<SPListBlogs> Invoke(SPListBlogsParameter parameter)
		{
			IQuery query = Session.GetNamedQuery("SP_List_Blogs");
										query.SetParameter("pageSize", parameter.pageSize);
												query.SetParameter("pageIndex", parameter.pageIndex);
												query.SetParameter("recordType", parameter.recordType);
												query.SetParameter("catalogID", parameter.catalogID);
												query.SetParameter("dateBefore", parameter.dateBefore);
								
						query.SetResultTransformer(new NHibernate.Transform.AliasToBeanResultTransformer(typeof(SPListBlogs)));

			IList<SPListBlogs> records = query.List<SPListBlogs>();
			return records;
					}
	}
	
}
		